Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 506 Bytes

git tips之只提交文件中的某些变更.org

File metadata and controls

12 lines (10 loc) · 506 Bytes

git tips之只提交文件中的某些变更

有时候可能会不小心在同一个文件中对针对多个需求了修改,但是在提交代码时只想提交针对某个变更做的修改。 这时候可以试试 git add --patch ${file} 命令。

如下图所示: images/git_add_patch_2018-12-14%2015-09.gif